<template>
  <div class="hello">
    Home 
    {{str}}
  <button @click="deletelist(111)">
    --
  </button>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: 'Home',
  data () {
    return {
      msg: 'Home'
    }
  },
  computed: {
    ...mapState(["str"])
  },
  methods: {
    deletelist(){
      this.$store.commit("deletelist")
    }
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="stylus" scoped>
@import "~assets/visbae.stylus"
  .hello
    color $color
</style>